import matplotlib.pyplot as plt
from random_walk import Walk

# value = list(i for i in range(1, 1001))
# square = list(i*i*i for i in range(1, 1001))

t = Walk(5000)
t.walk_random()
point_number = list(range(t.step))
# c这个参数接受的list的长度必须等于x,y参数接受的list的长度
plt.scatter(t.x, t.y, c=point_number, cmap=plt.cm.Blues, s=5)

plt.show()

# plt.scatter(2, 4, s=200)
# plt.show()




